package com.tt.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 一条VO跑完service和dao，不拆了
 * </p>
 *
 * @author sugarttt
 * @version 1.0
 * @since 2023-03-04 10:04:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("movie_rank_score")
public class MovieRankScoreVO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 电影id
     */
    @TableField("movie_id")
    private Long movieId;

    /**
     * 电影名
     */
    @TableField("`name`")
    private String name;

    /**
     * 上映日期
     */
    @TableField("release_date")
    private String releaseDate;

    /**
     * 总榜评分,无则不填
     */
    @TableField("total_score")
    private String totalScore;

    /**
     * 新榜评分,无则不填
     */
    @TableField("new_score")
    private String newScore;


    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    /**
     * 删除
     */
    @TableField("gmt_delete")
    @TableLogic
    private Integer gmtDelete;

}
